{extend name='common@layout/base' /}
{block name='breadcrumb'}
<div class="nch-breadcrumb-layout">
    <div class="nch-breadcrumb wrapper"><i class="icon-home"></i>
            <span><a href="{$Think.config.url_base}">首页</a></span><span class="arrow">></span>
            	{if isset($show_keyword)}
            	<span>搜索结果</span>
            	{else /}
                <span><a href="{$think.config.base_url}{:url('index/goods/index',['tag'=>$one_tag])}">{$one_name}</a></span><span class="arrow">></span>
                <span>{$two_name}</span>
                {/if}
          </div>
  </div>
{/block}
{block name='content'}

<script src="/old/shop/resource/js/search_goods.js?v1.2"></script>
<link href="/old/shop/templates/new20160622/css/layout.css" rel="stylesheet" type="text/css">
<style type="text/css">
body {
_behavior: url(/old/shop/templates/new20160622/css/csshover.htc);
}
</style>
<style>
.new_type_div{
	border: 1px solid #eee;
}	
.new_type_div_item{
	background: rgb(245,249,250);
}
.new_type_div_item.two,
.new_type_div_item.three{
	margin-top: 1px;
}	
.new_type_div_item_head{
	width: 199px;
	color: white;
	background: rgb(45, 62, 80);
	text-align: center;
	font-size: 16px;
	display: inline-block;
	height: 40px;
	padding-top: 10px;
	box-sizing: border-box;
}
.new_type_div_item_other{
	box-sizing: border-box;
	padding: 10px 5px 0px 5px;
	margin: 0px 5px;
	height: 40px;
	display: inline-block;
	text-align: center;
	font-size: 14px;	
	cursor: pointer;
}
.new_type_div_item_other.active{
	border-bottom: solid 2px #EC5171;
	color: #EC5171;
}
.nch-sortbar-array li.selected{
    background-color: #EC5171 !important;
    color: white !important;	
}
.nch-sortbar-array li.selected a{ color: white !important;}
.nch-sortbar-array li.selected:hover a{
	color: white !important;
}
.nch-sortbar-array li:hover a { color: #EC5171 !important;}
.new_shore_item{
	border-bottom: 1px solid #EEEEEE;
	padding-top: 16px;
	padding-bottom: 16px;
	height: 70px;
}
.new_shore_img_div{
	border: 1px solid #EEEEEE;
}
.new_shore_img_div img{
	width: 80px;
}
.new_store_title_div{
	width: 380px;
	padding-left: 16px;
	position: relative;
	height: 68px;
}
.new_store_title_div .new_sub_title{
	position: absolute;
	bottom: 0;
	left: 16px;
	width: 200px;
}
.new_store_price_div{
	padding-left: 0px;
	padding-top: 30px;
	width: 150px;
}
.new_store_rate_div{
	padding-left: 0px;
	padding-top: 0px;
}
.new_page{
	padding: 8px 13px 8px 12px;
}
.new_page .active{
	color: rgb(74,110,156);
}
.new_page_div{
	margin: 0 auto;
	display: inline-block;
}
.new_page_div div{
	box-sizing: border-box;
}
.new_page_div a,
.new_page_div font{
	display: block;
	padding-top: 2px;
}
.new_page_div a:hover,
.new_page_div a:focus,
.new_page_div a.focus,
.new_page_div a:active,
.new_page_div a.active{
   text-decoration: none !important;
}
.new_num{
	width: 25px;
	height: 25px;
	margin: 0 5px;
}
.new_num.active,
.new_num:hover{
	background: #EC5171;
}
.new_num.active a,
.new_num:hover a{
	color: white;
}
.new_last{
	margin-right: 5px;
}
.new_next{
	margin-left: 5px;
	margin-right: 5px;
}
.new_total{
	margin-left: 10px;
}
.new_page_input{
	width: 20px;
	display: inline-block !important;
	text-align: center;
}
.new_btn_div{
	margin: 0 10px;
}
.new_btn_div button{
	padding: 3px 12px;
	font-size: 12px;
}
.new_btn_white{
	background: white;
	color: #333333;
	border: 1px solid #EEEEEE;
}
#new_up_filter_btn{
	position: absolute;
	right: 0;
	top: 185px;
	z-index: 100;
	padding: 3px 12px;
	font-size: 12px;
}
.new_arrow{
    font-size: 0px;
    line-height: 0;
    vertical-align: middle;
    display: inline-block;
    width: 0px;
    height: 0px;
    border-width: 4px;
    border-color: transparent transparent #777 transparent;
    border-style: dashed dashed solid dashed;
    -webkit-transition: .2s ease-in;
    -moz-transition: -webkit-transform .2s ease-in;
    -o-transition: -webkit-transform .2s ease-in;
    transition: .2s ease-in;	
    margin-top: -6px;
    margin-left: 8px;
}
.active .new_arrow{
	FILTER: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); 
	-moz-transform: rotate(180deg); 
	-moz-transform-origin: 50% 75%; 
	-webkit-transform: rotate(180deg); 
	-webkit-transform-origin: 50% 75%; 
	-o-transform: rotate(180deg); 
	-o-transform-origin: 50% 75%; 
	transform: rotate(180deg); 
	transform-origin: 50% 75%;
}
#new_up_intro_btn{
	position: absolute;
	top: 0;
	right: 0;
	padding: 3px 12px;
	font-size: 12px;	
}

.new_more_div_title{
	padding: 8px 10px 8px 16px;
	background: rgb(33,51,65);
}
.new_more_div_title font{
	color: white;
	font-size: 14px;
}
.new_more_div_body{
	position: relative;
	border: 1px solid #EEEEEE;
	border-top: none;
}
.new_arrow_2{
    font-size: 0px;
    line-height: 0;
    vertical-align: middle;
    display: inline-block;
    width: 0px;
    height: 0px;
    border-width: 4px;
    border-color: #777 transparent transparent transparent;
    border-style: solid dashed dashed dashed;
    -webkit-transition: .2s ease-in;
    -moz-transition: -webkit-transform .2s ease-in;
    -o-transition: -webkit-transform .2s ease-in;
    transition: .2s ease-in;	
}
.new_city_select_all_div{
	position: relative;
	z-index: 30;
	box-sizing: border-box;
}
.new_city_select_result_div{
	border: 1px solid #EEEEEE;
	border-bottom: none;
	background: white;
	padding: 4px;
	position: relative;
	z-index: 60;
}
.new_city_select_div{
	z-index: 40;
	position: absolute;
	top: 28px;
	left: -30px;
	background: white;
	width: 400px;
	box-sizing: border-box;
	padding: 16px;
	border: 1px solid #EEEEEE;
    -moz-box-shadow: 0 0 5px #ddd;
    -webkit-box-shadow: 0 0 5px #ddd;
    box-shadow: 0 0 5px #ddd;	
    display: none;
}
.new_city_select_close_div{
	position: absolute;
	top: -10px;
	right: -10px;
	width: 20px;
	height: 28.3px;
}
.new_city_select_div_tab{
	position: relative;
	z-index: 30;
}
.new_city_select_div_tab_one,
.new_city_select_div_tab_two,
.new_city_select_div_tab_three{
	border: 1px solid #EEEEEE;
	border-bottom: none;
	margin-left: 4px;
	margin-right: 4px;
	padding: 6px;
	font-size: 14px;
	box-sizing: border-box;
	color: #005aa0;
	font-weight: 500;
}
.new_city_select_div_tab_one.active,
.new_city_select_div_tab_two.active,
.new_city_select_div_tab_three.active{
	border: 1px solid  #edd28b;
	border-bottom: 2px solid white;
}
.new_city_select_line_div{
	width: 360px;
	height: 2px;
	background:  #edd28b;
	position: absolute;
	top: 49px;
	left:20px;
	z-index: -1;
	box-sizing: border-box;
}
.new_city_select_div_content{
	padding: 6px;
	padding-left: 16px;
}
.new_city_select_div_content_one,
.new_city_select_div_content_two,
.new_city_select_div_content_three{
	width: 100%;
	text-align: left;
	display: none;
}
.new_city_select_div_content_one.active,
.new_city_select_div_content_two.active,
.new_city_select_div_content_three.active{
	display: block;
}
.new_city_select_div_content_one a,
.new_city_select_div_content_two a,
.new_city_select_div_content_three a{
	display: inline-block;
	color: #005ea7;
	text-decoration: none;
	padding: 4px;
	font-size: 12px;
}
.new_city_select_div_content_one a:hover,
.new_city_select_div_content_two a:hover,
.new_city_select_div_content_three a:hover{
	background: #005ea7;
	color: white;
	text-decoration: none;
}
.new_city_select_div_content_two,
.new_city_select_div_content_three{
	display: none;
}
</style>
<button class="new_btn new_btn_white" id="new_up_filter_btn">收起筛选<i class="new_arrow"></i></button>
<script>
	(function(){
		$("#new_up_filter_btn").css({
			right:($(window).width()-1200)/2+'px'
		});
		var is_open = true;
		$("#new_up_filter_btn").click(function(){
			if(is_open == true){
				$("#new_filter_div").slideUp();
				$(this).addClass('active');
			}else{
				$("#new_filter_div").slideDown();
				$(this).removeClass('active');
			}
			is_open = !is_open;
		});
	})();
</script>
<div class="nch-container wrapper" style="overflow: hidden;">
	<div class="new_w100_" id="new_filter_div">
		<div class="new_type_div">
			{if(isset($goods_class_array) && !empty($goods_class_array))}
			<div class="new_type_div_item">
				<div class="new_type_div_item_head">服务分类</div>
				{volist name='goods_class_array' id='val' key='key'}
					<div class="new_type_div_item_other {if($one_id == $val['id'])}active{/if}">
						<a href="{$Think.config.base_url}{:url('index/goods/index',['tag'=>$val.tag])}" >{$val.name}</a>
					</div>
				{/volist}
			</div>
			<div class="new_type_div_item two">
				{if(isset($goods_class_array[$one_id]['_child']) && !empty($goods_class_array[$one_id]['_child']))}
				<div class="new_type_div_item_head" style="margin-top: -1px;">{$goods_class_array[$one_id]['name']}</div>
				 {volist name='$goods_class_array[$one_id]["_child"]' id='val' key='key'}
					<div class="new_type_div_item_other {if($two_id == $val['id'])}active{/if}">
						<a href="{$Think.config.base_url}{:url('index/goods/index',['tag'=>$val.tag])}" >{$val.name}</a>
					</div>
				 {/volist}
				 {/if}
			</div>
			{/if}
			<div class="new_type_div_item three">
				<div class="new_type_div_item_head" style="margin-top: -1px;">服务区域</div>
				<div class="new_type_div_item_other" style="padding-top: 0;height: 33px;">
					<div class="new_city_select_all_div" id="new_city_select_all_div">
						<div class="new_city_select_result_div">
							<font id="new_city_select_result">点击选择地区</font>
							<font><i class="new_arrow_2"></i></font>
						</div>
						<div class="new_city_select_div" id="new_city_select_div">
							<img src="/old/shop/templates/new20160622/images/shop/new_close_btn.png" id="new_city_select_close_div" class="new_city_select_close_div" />
							<div class="new_city_select_div_tab new_bfc">
								<div class="new_city_select_div_tab_one new_pull_left new_city_select_div_tab_item active" id="new_city_select_div_tab_one">
									<font id="new_city_selct_div_tab_one_font">请选择</font>
									<font><i class="new_arrow_2"></i></font>
								</div> 
								<div class="new_city_select_div_tab_two new_pull_left new_city_select_div_tab_item" id="new_city_select_div_tab_two">
									<font id="new_city_selct_div_tab_two_font">请选择</font>
									<font><i class="new_arrow_2"></i></font>								
								</div> 
								<div class="new_city_select_div_tab_three new_pull_left new_city_select_div_tab_item" id="new_city_select_div_tab_three">
									<font id="new_city_selct_div_tab_three_font">请选择</font>
									<font><i class="new_arrow_2"></i></font>								
								</div>
							</div>
							<div class="new_city_select_line_div"></div>
							<div class="new_city_select_div_content new_bfc"> 
								<div class="new_city_select_div_content_one new_bfc new_pull_left active" id="new_city_select_div_content_one">
								</div> 
								<div class="new_city_select_div_content_two new_bfc new_pull_left" id="new_city_select_div_content_two">
								</div> 
								<div class="new_city_select_div_content_three new_bfc new_pull_left" id="new_city_select_div_content_three">
								</div>														
							</div>
						</div>						
					</div>
					

				</div>
			</div>	
								
		</div>
	</div>
	<div class="new_pull_left" style="width: 980px;margin-top: 16px;">
		
		<div id="new_more_div" class="new_mt16">
			<div class="new_more_div_title">
				<font>详情</font>
			</div>
			<div class="new_more_div_body">
			</div>
		</div>
		<script>
					(function(){
						$("#new_more_div").hide();
						var is_open = false;
						$("#new_look_more").click(function(){
							if(is_open == true){
								$("#new_more_div").slideUp();
								$(this).addClass('active');
							}else{
								$("#new_more_div").slideDown();
								$(this).removeClass('active');
							}
							is_open = !is_open;
						});				
					})();
		</script>
		<div class="new_mt16 new_bfc" style="border: 1px solid #E6E6E6;border-left: none !important;">
	        <div class="nch-sortbar-array new_pull_left" style="padding: 0 !important;">
	        {if isset($show_keyword)}
	          <ul>
	            <li {if($search_key == 0)} class="selected" {/if}><a href="{$Think.config.base_url}?s=index/search/index&key=0&order=0&keyword={$show_keyword}&area_id={$return_area_id}"  title="默认排序">默认</a></li>
	            <li {if($search_key == 1)} class="selected" {/if}><a href="{if($search_order == '2' && $search_key == '1')}{$Think.config.base_url}?s=index/search/index&key=1&order=1&keyword={$show_keyword}&area_id={$return_area_id}{else /}{$Think.config.base_url}?s=index/search/index&key=1&order=2&keyword={$show_keyword}&area_id={$return_area_id}{/if}" {if($search_key == 1)}class="{$search_order==1 ? 'asc' : 'desc'}"{/if} title="{if($search_order == 2 && $search_key == 1)}点击按销量从低到高排序{else /}点击按销量从高到低排序{/if}">销量<i></i></a></li>
	            <li {if($search_key == 2)} class="selected" {/if}><a href="{if($search_order == '2' && $search_key == '2')}{$Think.config.base_url}?s=index/search/index&key=2&order=1&keyword={$show_keyword}&area_id={$return_area_id}{else /}{$Think.config.base_url}?s=index/search/index&key=2&order=2&keyword={$show_keyword}&area_id={$return_area_id}{/if}" {if($search_key == 2)}class="{$search_order==1 ? 'asc' : 'desc'}"{/if} title="{if($search_order == 2 && $search_key == 2)}点击按人气从低到高排序{else /}点击按人气从高到低排序{/if}">人气<i></i></a></li>
	            <li {if($search_key == 3)} class="selected" {/if}><a href="{if($search_order == '2' && $search_key == '3')}{$Think.config.base_url}?s=index/search/index&key=3&order=1&keyword={$show_keyword}&area_id={$return_area_id}{else /}{$Think.config.base_url}?s=index/search/index&key=3&order=2&keyword={$show_keyword}&area_id={$return_area_id}{/if}" {if($search_key == 3)}class="{$search_order==1 ? 'asc' : 'desc'}"{/if} title="{if($search_order == 2 && $search_key == 3)}点击按价格从低到高排序{else /}点击按价格从高到低排序{/if}">价格<i></i></a></li>
	          </ul>
	          {else /}
	          <ul>
	            <li {if($search_key == 0)} class="selected" {/if}><a href="{$Think.config.base_url}{:url('index/goods/index',array_merge($query, ['key' => '0', 'order' => '0', 'curpage'=>1]))}"  title="默认排序">默认</a></li>
	            <li {if($search_key == 1)} class="selected" {/if}><a href="{if($search_order == '2' && $search_key == '1')}{$Think.config.base_url}{:url('index/goods/index',array_merge($query, ['key' => '1', 'order' => '1', 'curpage'=>1]))}{else /}{$Think.config.base_url}{:url('index/goods/index',array_merge($query, ['key' => '1', 'order' => '2', 'curpage'=>1]))}{/if}" {if($search_key == 1)}class="{$search_order==1 ? 'asc' : 'desc'}"{/if} title="{if($search_order == 2 && $search_key == 1)}点击按销量从低到高排序{else /}点击按销量从高到低排序{/if}">销量<i></i></a></li>
	            <li {if($search_key == 2)} class="selected" {/if}><a href="{if($search_order == '2' && $search_key == '2')}{$Think.config.base_url}{:url('index/goods/index',array_merge($query, ['key' => '2', 'order' => '1', 'curpage'=>1]))}{else /}{$Think.config.base_url}{:url('index/goods/index',array_merge($query, ['key' => '2', 'order' => '2', 'curpage'=>1]))}{/if}" {if($search_key == 2)}class="{$search_order==1 ? 'asc' : 'desc'}"{/if} title="{if($search_order == 2 && $search_key == 2)}点击按人气从低到高排序{else /}点击按人气从高到低排序{/if}">人气<i></i></a></li>
	            <li {if($search_key == 3)} class="selected" {/if}><a href="{if($search_order == '2' && $search_key == '3')}{$Think.config.base_url}{:url('index/goods/index',array_merge($query,['key' => '3', 'order' => '1', 'curpage'=>1]))}{else /}{$Think.config.base_url}{:url('index/goods/index',array_merge($query, ['key' => '3', 'order' => '2', 'curpage'=>1]))}{/if}" {if($search_key == 3)}class="{$search_order==1 ? 'asc' : 'desc'}"{/if} title="{if($search_order == 2 && $search_key == 3)}点击按价格从低到高排序{else /}点击按价格从高到低排序{/if}">价格<i></i></a></li>
	         </ul>
	         {/if}
	         
	          
	        </div>	
	        <div class="new_pull_right new_page">
	        		<font>{if($total_num == 0)}没有记录{else /}&lt;</font><font>共&nbsp;{$total_num|default=0}&nbsp;条记录</font><font>&gt;{/if}</font>
	        </div>
		</div>
		
		<script>
				(function(){
					
					var list_area = eval({$list_area}),
						return_area_id = {$return_area_id},
						one_select_id = '', 
						two_select_id = '', 
						three_select_id = '', 
						obj = {
							'area_id':'', 
							'area_name':'', 
							'area_parent_id':'', 
							'area_sort':'', 
							'area_deep':'' 
						},
						one_list_area = [],
						two_list_area = [],
						three_list_area = [],
						is_clicked = false,
						get_view_html = function(list,flag){
							var content_html = '';
							for(var i=0;i<list.length;i++){
								var is_do = false;
								switch (flag){
									case '1':
										is_do = true; 
										break;
									case '2':
										if(list[i].area_parent_id == one_select_id){
											is_do = true;
										}
										break;
									case '3':
										if(list[i].area_parent_id == two_select_id){
											is_do = true;
										}									
										break;																				
									default:
										break;
								}
								if(is_do == false){
									continue;
								}
								content_html+='<div class="new_pull_left new_w25_ new_pt4 new_pb4 new_city_select_div_content_item" data-area-id="'
									+list[i].area_id+'" data-area-name="'+list[i].area_name
									+'" data-area-parent-id="'+list[i].area_parent_id
									+'" data-area-sort="'+list[i].area_sort
									+'" data-area-deep="'+list[i].area_deep
									+'"><a href="javascript:void(0)">'+list[i].area_name+'</a></div>';
							}
							var all_id = '';
							if( flag!="1" ){
								if( flag == '2' ){
									all_id = one_select_id;
								}else{
									all_id = two_select_id;
								}
								content_html+='<div class="new_pull_left new_w25_ new_pt4 new_pb4 new_city_select_div_content_item" data-area-id="'
									+all_id+'" data-area-name="全部" data-area-parent-id="'
									+all_id+'" data-area-deep="'+flag
									+'"><a href="javascript:void(0)">全部</a></div>';								
							}
							return content_html;							
						},
						three_title_view = function(){
							var select_name = '';
							for(var i=0;i<three_list_area.length;i++){
								if(three_list_area[i].area_id == three_select_id){
									select_name = three_list_area[i].area_name;
									break;
								}
							}
							if(!select_name){
								select_name = '请选择';
							}
							$("#new_city_selct_div_tab_three_font").html(select_name);								
						},						
						three_view = function(){
							three_title_view();
							$("#new_city_select_div_content_three").html(get_view_html(three_list_area,'3'));							
						},
						two_title_view = function(){
							var select_name = '';
							for(var i=0;i<two_list_area.length;i++){
								if(two_list_area[i].area_id == two_select_id){
									select_name = two_list_area[i].area_name;
									break;
								}
							}
							if(!select_name){
								select_name = '请选择';
							}
							$("#new_city_selct_div_tab_two_font").html(select_name);							
						},
						two_view = function(){
							two_title_view();
							$("#new_city_select_div_content_two").html(get_view_html(two_list_area,'2'));							
						},	
						one_title_view = function(){
							var select_name = '';
							for(var i=0;i<one_list_area.length;i++){
								if(one_list_area[i].area_id == one_select_id){
									select_name = one_list_area[i].area_name;
									break;
								}
							}
							if(!select_name){
								select_name = '请选择';
							}
							$("#new_city_selct_div_tab_one_font").html(select_name);							
						},						
						one_view = function(){
							one_title_view();
							$("#new_city_select_div_content_one").html(get_view_html(one_list_area,'1'));
						},
						init = function(){
							for(var i=0;i<list_area.length;i++){
								var area_deep = list_area[i].area_deep.toString();
								switch (area_deep){
									case '1':
										one_list_area.push(list_area[i]);
										break;
									case '2':
										two_list_area.push(list_area[i]);
										break;
									case '3':
										three_list_area.push(list_area[i]);
										break;
									default:
										break;
								}
							}
							if(return_area_id){
								var array = [];
								array.push(return_area_id);
								var fun = function(new_return_area_id,area_deep){
									if(area_deep == 0){
										return ;
									}
									if(area_deep == -1){
										for(var i=0;i<list_area.length;i++){
											if(new_return_area_id == list_area[i].area_id){
												area_deep = list_area[i].area_deep;
												break;
											}
										}											
									}
									for(var i=0;i<list_area.length;i++){
										if(new_return_area_id == list_area[i].area_id){
											new_return_area_id = list_area[i].area_parent_id;
											break;
										}
									}	
									array.push(new_return_area_id);
									fun(new_return_area_id,new Number(area_deep)-1);
								}
								fun(return_area_id,-1);
								var length = array.length;
								switch (length+''){
									case '4':
										three_select_id = array[0];
										two_select_id = array[1];
										one_select_id = array[2];
										break;
									case '3':
										two_select_id = array[0];
										one_select_id = array[1];									
										break;
									case '2':
										one_select_id = array[0];										
										break;
									default:
										break;
								}
								one_view();
								two_view();
								three_view();
								show_result(true);
							}else{
								one_view();	
							}
						},
						new_city_select_div_tab_one_click = function(){
							$(".new_city_select_div_tab_item").removeClass('active');
							$('#new_city_select_div_tab_one').addClass('active');
							$(".new_city_select_div_content > div").removeClass('active');
							$("#new_city_select_div_content_one").addClass('active');							
						},
						new_city_select_div_tab_two_click = function(){
							$(".new_city_select_div_tab_item").removeClass('active');
							$('#new_city_select_div_tab_two').addClass('active');							
							$(".new_city_select_div_content > div").removeClass('active');
							$("#new_city_select_div_content_two").addClass('active');							
						},
						new_city_select_div_tab_three_click = function(){
							$(".new_city_select_div_tab_item").removeClass('active');
							$('#new_city_select_div_tab_three').addClass('active');		
							$(".new_city_select_div_content > div").removeClass('active');
							$("#new_city_select_div_content_three").addClass('active');								
						},
						show_result = function(flag){
							var one_select_name = $("#new_city_selct_div_tab_one_font").html(),
								two_select_name = $("#new_city_selct_div_tab_two_font").html(),
								three_select_name = $("#new_city_selct_div_tab_three_font").html(),
								result = '';
							if(one_select_name!='请选择' && one_select_name!=''){
								result += one_select_name;
							}	
							if(two_select_name!='请选择' && two_select_name!=''){
								result += two_select_name;
							}	
							if(three_select_name!='请选择' && three_select_name!=''){
								result += three_select_name;
							}					
							$("#new_city_select_result").html(result);
							$("#new_city_select_div").hide();
							if(flag != true){
								var return_area_id = '';
								if(three_select_id!=''){
									return_area_id = three_select_id;
								}else if(two_select_id!=''){
									return_area_id = two_select_id;
								}else{
									return_area_id = one_select_id;
								}
								
								<?php if(isset($show_keyword)) { ?>
								$url = "{$Think.config.base_url}?s=index/search/index&keyword=<?php echo $show_keyword; ?>&area_id=" + return_area_id;
								<?php }else{?>
								$url = "{$Think.config.base_url}/shop/cate-{$default_classid}-"+return_area_id+"/";
								<?php } ?>
								location.href = $url;
							}										
						},
						is_no_next = function(flag){
							var result = true;
							switch (flag){
								case '1':
									for(var i=0;i<two_list_area.length;i++){
										if(two_list_area[i].area_parent_id == one_select_id){
											result = false;
											break;
										}
									}
									break;
								case '2':
									for(var i=0;i<three_list_area.length;i++){
										if(three_list_area[i].area_parent_id == two_select_id){
											result = false;
											break;
										}
									}
									break;
								default:
									break;
							}
							return result;
						};											
						init();
						$("#new_city_select_all_div").mouseenter(function(){
							if($("#new_city_select_div").css('display') == 'none'){
								$("#new_city_select_div").show();
								new_city_select_div_tab_one_click();								
							}
						}).mouseleave(function(){
							if(is_clicked == false){
								$("#new_city_select_div").hide();
							}
						});	
						$("#new_city_select_close_div").click(function(){
							$("#new_city_select_div").hide();
						});				
						$(document).on('click','body .new_city_select_div_content_item',function(){
							is_clicked = true;
							var $this = $(this);
							var 	obj = {
								'area_id':$this.attr('data-area-id'), 
								'area_name':$this.attr('data-area-name'), 
								'area_parent_id':$this.attr('data-area-parent-id'), 
								'area_sort':$this.attr('data-area-sort'), 
								'area_deep':$this.attr('data-area-deep') 
							};
							switch (obj.area_deep){
								case '1':
									var is_two = false,
										is_three = false;
									for(var i=0;i<two_list_area.length;i++){
										if(two_list_area[i].area_parent_id == obj.area_id && two_list_area[i].area_id == two_select_id){
											is_two = true;
											break;
										}
									}
									if(is_two == true){
										for(var i=0;i<three_list_area.length;i++){
											if(three_list_area[i].area_parent_id == two_select_id && three_list_area[i].area_id == three_select_id){
												is_three = true;
												break;
											}
										}	
									}
									if(is_two == true){
										if(is_three == true){
										}else{
											three_select_id = '';
										}
									}else{
										two_select_id = '';
										three_select_id = '';
									}
									one_select_id = obj.area_id;
									one_title_view();									
									two_title_view();
									three_title_view();
									two_view();
									new_city_select_div_tab_two_click();	
									if(is_no_next('1') == true){
										show_result();
									}
									break;
								case '2':
									two_select_id = obj.area_id;
									two_title_view();			
									var is_three = false;
										for(var i=0;i<three_list_area.length;i++){
											if(three_list_area[i].area_parent_id == two_select_id){
												is_three = true;
												break;
											}
										}
									three_view();
									new_city_select_div_tab_three_click();	
									if(is_no_next('2') == true){
										show_result();
									}																						
									break;
								case '3':
									three_select_id = obj.area_id;
									three_title_view();	
									show_result();						
									break;
								default:
									break;
							}
						});
						$("#new_city_select_div_tab_one").click(function(){
							new_city_select_div_tab_one_click();
						});						
						$("#new_city_select_div_tab_two").click(function(){
							new_city_select_div_tab_two_click();							
						});						
						$("#new_city_select_div_tab_three").click(function(){
							new_city_select_div_tab_three_click();											
						});
						
					
				})();
			</script>
		<div>
		  <input type="hidden" id="lockcompare" value="unlock" />
		  		{if(isset($goods_common_list) && !empty($goods_common_list))}
		  		{volist name='goods_common_list' id='val' key='key'}
		    		<div class="new_shore_item new_bfc">
		    			<div class="new_pull_left">
		    				<div class="new_shore_img_div">
		    					<a href="{$Think.config.base_url}{:url('index/goods/detail',['goods_id'=>$val.goods_id])}" target="_blank" title="">
		    						<img src="{$val.goods_image|img_url=60}"/>
		    					</a>
		    				</div>
		    			</div>
		    			<div class="new_pull_left">
		    				<div class="new_store_title_div">
		    					<div class="goods-name" style='height: 40px;overflow: hidden;'><a href="{$Think.config.base_url}{:url('index/goods/detail',['goods_id'=>$val.goods_id])}" target="_blank" title="">{$val.goods_name_highlight|default=$val.goods_name}&nbsp;{$val.goods_jingle_highlight|default=$val.goods_jingle}<em></em></a></div>
		    					<div class="new_sub_title">
		    						<font>累计点击量：</font>
		    	<font style="color: rgb(74,110,156);">{$val.click_num|default=0}</font>
		    					</div>
		    				</div>
		    			</div>
		    			<div class="new_pull_left" >
		    				<div class="new_store_price_div">
		    					<div class="goods-price new_inline-block">
		    						<em class="sale-price" style="font-size: 18px;color: #D93600;" title="商城价：&yen;{$val.click_num}">&yen;{$val.goods_price}</em>
		    					</div>
		    					<font>{$val.goods_unit|default=''}</font>
		    				</div>
		    			</div>
		    			<div class="new_pull_left" style="width: 180px;">
		    				<div class="new_store_rate_div">
		    					<div class='rate-ai-star'>
		    						<font>评分：</font>
		    						<font style="color: rgb(74,110,156);">{$val.evaluation_scores|default=5.0}&nbsp;分</font>		    						
		    					</div>
		    					<div class='rate-ai-star'> <em><i style=" width: <?php echo number_format(($val['evaluation_scores']?:5)*100/5,1); ?>%;"></i></em>					
		    					</div>
							<div>
								<a href="{$think.config.base_url}{:url('index/store/index',['store_id'=>$val.store_id])}"><font>{$val.store_name}</font></a>
								<font>
								{if(!empty($val['qq']))}
									<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={$val.qq}&site=qq&menu=yes" title="QQ: {$val.qq}"  title="QQ马上咨询"><img src="/old/shop/templates/new20160622/images/shop/qq.png"/></a>
							    {/if}
							    </font>
							</div>
		    				</div>
		    			</div>
		    			<div class="new_pull_right" style="text-align: right;">
		    				<div style="width: 150px;text-align: right;">
		    					<img src="/old/shop/templates/new20160622/images/shop/aiyuangong.png" style="display: inline-block;width: 80px;" />	
		    				</div>
		    				<div style="width: 150px;text-align: right;">
      						<img src="/old/shop/templates/new20160622/images/shop/50wanbaozhuang.png" height="16px" style="display: inline-block;" />
      					</div>
      					<div style="width: 150px;text-align: right;">
      						<img src="/old/shop/templates/new20160622/images/shop/dingjifuwushang.png" height="16px" style="display: inline-block;margin-top: 8px;" />
      					</div>
		    			</div>
		    		</div>
		    		{/volist}
		    	{/if}
		</div>
	      <div class="tc mt20 mb20">
	        <div class="pagination"> {$page->render();}</div>
	        <br />
	      </div>		
	</div>
	<div class="new_pull_right" style="width: 208px;border: 1px solid #EEEEEE;margin-top: 16px;">
  		<div style="border-bottom: 1px solid #EEEEEE;background: rgb(245,249,250);height: 150px;" class="new_bfc">
  			<div class="new_pull_left new_w40_ new_pl10" style="box-sizing: border-box;">
  				<img src="/old/shop/templates/new20160622/images/shop/right_1.png" class="new_inline-block" style="width: 60px;padding-top: 40px;"/>
  			</div>
  			<div class="new_pull_left new_w60_" style="padding-top: 55px;">
  				<p class="new_fw700 new_f24">爱员工</p>
  				<p class="new_f14 new_mt10">服务保障</p>
  			</div>
  		</div>
  		<div style="box-sizing: border-box;padding: 0px 10px;height: 150px;" >
  			<div  class="new_bfc" style="box-sizing: border-box;border-bottom: 1px solid #EEEEEE;height: 150px;">
	  			<div class="new_pull_left new_w40_" style="box-sizing: border-box;">
	  				<img src="/old/shop/templates/new20160622/images/shop/right_2.png" class="new_inline-block" style="width: 60px;padding-top: 40px;"/>
	  			</div>
	  			<div class="new_pull_left new_w60_" style="padding-top: 40px;box-sizing: border-box;">
	  				<p class="new_fw700 new_f16" style="color: rgb(74,110,156);">资质认证</p>
	  				<p style="font-size: 10px;color: rgb(74,110,156);">实名认证职业资质</p>
	  				<p style="font-size: 10px;color: rgb(74,110,156);">3年以上执业经验</p>
	  			</div> 
  			</div> 			
  		</div>
  		<div style="box-sizing: border-box;padding: 0px 10px;height: 150px;" >
  			<div  class="new_bfc" style="box-sizing: border-box;border-bottom: 1px solid #EEEEEE;height: 150px;">
	  			<div class="new_pull_left new_w40_" style="box-sizing: border-box;">
	  				<img src="/old/shop/templates/new20160622/images/shop/right_3.png" class="new_inline-block" style="width: 60px;padding-top: 40px;"/>
	  			</div>
	  			<div class="new_pull_left new_w60_" style="padding-top: 40px;box-sizing: border-box;">
	  				<p class="new_fw700 new_f16" style="color: rgb(74,110,156);">支付安全</p>
	  				<p style="font-size: 10px;color: rgb(74,110,156);">明码标价支付有保证</p>
	  				<p style="font-size: 10px;color: rgb(74,110,156);">服务不满意全额退款</p>
	  			</div> 
  			</div> 			
  		</div>

  		<div style="box-sizing: border-box;padding: 0px 10px;height: 150px;" >
  			<div  class="new_bfc" style="box-sizing: border-box;border-bottom: 1px solid #EEEEEE;height: 150px;">
	  			<div class="new_pull_left new_w40_" style="box-sizing: border-box;">
	  				<img src="/old/shop/templates/new20160622/images/shop/right_4.png" class="new_inline-block" style="width: 60px;padding-top: 40px;"/>
	  			</div>
	  			<div class="new_pull_left new_w60_" style="padding-top: 40px;box-sizing: border-box;">
	  				<p class="new_fw700 new_f16" style="color: rgb(74,110,156);">专人服务</p>
	  				<p style="font-size: 10px;color: rgb(74,110,156);">服务专员一对一服务</p>
	  				<p style="font-size: 10px;color: rgb(74,110,156);">系统监控每个服务节点</p>
	  			</div> 
  			</div> 			
  		</div>
  		<div style="box-sizing: border-box;padding: 0px 10px;height: 150px;" >
  			<div  class="new_bfc" style="box-sizing: border-box;border-bottom: 1px solid #EEEEEE;height: 150px;">
	  			<div class="new_pull_left new_w40_" style="box-sizing: border-box;">
	  				<img src="/old/shop/templates/new20160622/images/shop/right_5.png" class="new_inline-block" style="width: 60px;padding-top: 40px;"/>
	  			</div>
	  			<div class="new_pull_left new_w60_" style="padding-top: 40px;box-sizing: border-box;">
	  				<p class="new_fw700 new_f16" style="color: rgb(74,110,156);">售后无忧</p>
	  				<p style="font-size: 10px;color: rgb(74,110,156);">客服6x12服务反馈</p>
	  				<p style="font-size: 10px;color: rgb(74,110,156);">服务完成后续通知</p>
	  			</div> 
  			</div> 			
  		</div> 		
	</div>
</div>
<script src="/old/data/resource/js/waypoints.js?v1.2"></script>
<script src="/old/shop/resource/js/search_category_menu.js?v1.2"></script>
<script type="text/javascript">var defaultSmallGoodsImage = 'shop/common/default_goods_image_240.gif';
var defaultTinyGoodsImage = 'shop/common/default_goods_image_60.gif';

$(function() {
			$('#files').tree({
				expanded: 'li:lt(2)'
			});

			$('#main-nav-holder').waypoint(function(event, direction) {
				$(this).parent().toggleClass('sticky', direction === "down");
				event.stopPropagation();
			});
			$('span[nc_type="show"]').click(function() {
						s = $(this).parents('dd').prev().find('li[nc_type="none"]');
						if (s.css('display') == 'none') {
							s.show();
							$(this).html('<i class="icon-angle-up"></i>收起');
} else {
	s.hide();
	$(this).html('<i class="icon-angle-down"></i>更多');
}
});
			{if($search_area_id)}
			$('[nc_type="area_name"]').html('{search_area_name}');
			{/if}
});
</script>

{/block}